package cn.edu.hubu.hubuhotel.entity;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;

import java.util.ArrayList;
import java.util.List;


@Data
@NoArgsConstructor
@AllArgsConstructor
@ToString
public class Record {
    private int userId;
    private int roomId;
    private String startTime;
    private String endTime;
    public List getRecord()
    //传递过去一个列表，例如:
    //[1,101,2021-01-01,2021-01-02]
    {
        List list = new ArrayList();
        list.add(userId);
        list.add(roomId);
        list.add(startTime);
        list.add(endTime);
        return list;
    }
}
